package org.example.designPattern.structural.decorator;

/*
* 装饰着模式：动态的逐层增强对象功能
* */
public class DecoratorTest {
    public static void main(String[] args) {
        //
        JianBing jianBing = new JianBing();

        // 鸡蛋
        Egg egg = new Egg(jianBing);

        // 糖
        Sausage sausage = new Sausage(egg);
    }
}
